package com.pureut.storage.dubbo;

import com.pureut.storage.service.WarehouseReportService;
import com.sale.storage.api.RemoteWarehouseReportService;
import com.sale.storage.api.dto.InvoicingReportDto;
import com.sale.storage.api.vo.InventoryBalanceVo;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 仓库服务
 */
@RequiredArgsConstructor
@DubboService
@Service
public class RemoteWarehouseReportServiceImpl implements RemoteWarehouseReportService {

    private final WarehouseReportService warehouseReportService;

    /**
     * 进销存统计表数据
     * @param inventoryBalanceVo
     * @return
     */
    @Override
    public List<InvoicingReportDto> getInvoicingReport(InventoryBalanceVo inventoryBalanceVo) {
        return warehouseReportService.getInvoicingReport(inventoryBalanceVo);
    }
}
